package com.bby.disk.manager.upload;

import com.bby.common.config.MongoDateConverter;
import com.bby.disk.manager.virtual.VirtualFile;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;

import java.util.Date;

@Data
@ToString
@Accessors(chain = true)
public class OfflineTask {
    @Id
    String id;
    /**
     * 创建者id
     */
    String userId;
    /**
     * 目标文件
     */
    VirtualFile file;
    /**
     * 地址
     */
    String url;
    /**
     * prepare,success,fail,running
     */
    String status;
}
